package com.carl.model;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 勋章表
 * </p>
 *
 * @author chenzhuo_m
 * @since 2018-09-28
 */
@TableName("t_medal")
public class Medal extends Model<Medal> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /**
     * 勋章名称
     */
    private String name;
    /**
     * 勋章图片
     */
    private String img;
    /**
     * 缩略图编码
     */
    private String scaleImgs;
    /**
     * 勋章组
     */
    private Long groupId;
    /**
     * 勋章等级
     */
    private Integer level;
    /**
     * 颁发方式(0 自动，1颁发)
     */
    private Integer way;
    /**
     * 勋章有效期(0 一个月,1 三个月,2一年,3永久)
     */
    private Integer validity;
    /**
     * 勋章描述
     */
    private String description;
    /**
     * 审核人(英文名)
     */
    private String approverEn;
    /**
     * 审核人(中文名)
     */
    private String approverCh;
    /**
     * 审核人id
     */
    private String approverId;
    /**
     * 创建时间
     */
    private Date createDate;
    /**
     * 创建人
     */
    private Long creator;
    /**
     * 修改时间
     */
    private Date updateDate;
    /**
     * 修改人
     */
    private Long updatePerson;
    /**
     * 状态(-1已删除, 1启用 ,0失效)
     */
    private Integer status;
    /**
     * 勋章类型
     */
    private Long typeId;
    /**
     * 勋章到期时间
     */
    private Date expiredTime;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getImg() {
        return img;
    }

    public void setImg(String img) {
        this.img = img;
    }

    public String getScaleImgs() {
        return scaleImgs;
    }

    public void setScaleImgs(String scaleImgs) {
        this.scaleImgs = scaleImgs;
    }

    public Long getGroupId() {
        return groupId;
    }

    public void setGroupId(Long groupId) {
        this.groupId = groupId;
    }

    public Integer getLevel() {
        return level;
    }

    public void setLevel(Integer level) {
        this.level = level;
    }

    public Integer getWay() {
        return way;
    }

    public void setWay(Integer way) {
        this.way = way;
    }

    public Integer getValidity() {
        return validity;
    }

    public void setValidity(Integer validity) {
        this.validity = validity;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getApproverEn() {
        return approverEn;
    }

    public void setApproverEn(String approverEn) {
        this.approverEn = approverEn;
    }

    public String getApproverCh() {
        return approverCh;
    }

    public void setApproverCh(String approverCh) {
        this.approverCh = approverCh;
    }

    public String getApproverId() {
        return approverId;
    }

    public void setApproverId(String approverId) {
        this.approverId = approverId;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Long getCreator() {
        return creator;
    }

    public void setCreator(Long creator) {
        this.creator = creator;
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    public Long getUpdatePerson() {
        return updatePerson;
    }

    public void setUpdatePerson(Long updatePerson) {
        this.updatePerson = updatePerson;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Long getTypeId() {
        return typeId;
    }

    public void setTypeId(Long typeId) {
        this.typeId = typeId;
    }

    public Date getExpiredTime() {
        return expiredTime;
    }

    public void setExpiredTime(Date expiredTime) {
        this.expiredTime = expiredTime;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "Medal{" +
        ", id=" + id +
        ", name=" + name +
        ", img=" + img +
        ", scaleImgs=" + scaleImgs +
        ", groupId=" + groupId +
        ", level=" + level +
        ", way=" + way +
        ", validity=" + validity +
        ", description=" + description +
        ", approverEn=" + approverEn +
        ", approverCh=" + approverCh +
        ", approverId=" + approverId +
        ", createDate=" + createDate +
        ", creator=" + creator +
        ", updateDate=" + updateDate +
        ", updatePerson=" + updatePerson +
        ", status=" + status +
        ", typeId=" + typeId +
        ", expiredTime=" + expiredTime +
        "}";
    }
}
